package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjCustomerAuthor;
import com.zb.entity.vo.CustomerAuthorDetailVo;
import com.zb.entity.vo.CustomerAuthorVo;

import java.util.List;

/**
 * <p>
 * 商家权限菜单表 服务类
 * </p>
 *
 * @author WEN
 * @since 2024-02-20
 */
public interface ZjCustomerAuthorService extends IService<ZjCustomerAuthor> {

    /**
     * 根据商家企业ID删除菜单权限
     * @param custAccId 商家企业ID
     * @param delAuthorIds 删除的权限对象ID
     */
    void deleteByCustomerIdAndAuthorId(Long custAccId, List<Long> delAuthorIds);

    /**
     * 根据企业ID获取企业的模块菜单权限
     * @param id 商家企业ID
     * @return
     */
    List<CustomerAuthorDetailVo> getCustomerAuthor(Long id);

}
